/**
 * 信息发布
 */
//发布板块
export enum moduleTypeEnumCn {
  SYSTEM_NOTICE = '公告',
  POLICY = '政策',
  INSTITUTION = '制度'
}

export enum moduleTypeEnum {
  SYSTEM_NOTICE = 'SYSTEM_NOTICE',
  POLICY = 'POLICY',
  INSTITUTION = 'INSTITUTION'
}
export enum moduleTypeEnum2 {
  Notice = 'SYSTEM_NOTICE',
  Policy = 'POLICY',
  Institution = 'INSTITUTION'
}

export enum releaseTypeEnum {
  TEXT_FILE = 'TEXT_FILE',
  FILE = 'FILE',
  LINK_URL = 'LINK_URL'
}

export enum releaseTypeEnumMap {
  TEXT_FILE = '文本及附件',
  FILE = '纯附件',
  LINK_URL = '超链接'
}

export const releaseTypeOption = [
  {
    label: releaseTypeEnumMap.TEXT_FILE,
    value: releaseTypeEnum.TEXT_FILE
  },
  {
    label: releaseTypeEnumMap.FILE,
    value: releaseTypeEnum.FILE
  },
  {
    label: releaseTypeEnumMap.LINK_URL,
    value: releaseTypeEnum.LINK_URL
  }
];

//启用状态
export enum enableEnums {
  ENABLE = 'ENABLE',
  DISABLE = 'DISABLE'
}
export const moduleTypeOption = [
  {
    label: moduleTypeEnumCn.SYSTEM_NOTICE,
    value: moduleTypeEnum.SYSTEM_NOTICE
  },
  {
    label: moduleTypeEnumCn.POLICY,
    value: moduleTypeEnum.POLICY
  },
  {
    label: moduleTypeEnumCn.INSTITUTION,
    value: moduleTypeEnum.INSTITUTION
  }
];
//发布状态
export enum releaseStatusTypeEnum {
  DRAFT = '草稿',
  PUBLISHED = '已发布'
}
export const releaseStatusTypeOption = [
  {
    label: '草稿',
    value: 'DRAFT'
  },
  {
    label: '已发布',
    value: 'PUBLISHED'
  }
];
//发布范围
export enum releaseRangeTypeEnum {
  ALL = '全部',
  DIRECTIONAL = '定向'
}
//发布时间
export enum releaseTimeTypeEnum {
  IMMEDIATE = '立即发布',
  TIMING = '定时发布'
}

// 报表中心业务类型下拉
export const platformOption = [
  {
    label: '全部',
    value: 'ALL'
  },
  {
    label: '碳足迹',
    value: 'FOOTPRINT'
  },
  {
    label: '碳盘查',
    value: 'INVENTORY'
  }
];

/**
 * 消息日志
 */
// 跟进阶段类型下拉
export const receiveStatusOptions = [
  {
    label: '已读',
    value: true
  },
  {
    label: '未读',
    value: false
  }
];
export const noticeTypeOptions = [
  {
    label: '协作通知',
    value: 'COOPERATION'
  },
  {
    label: '审批结果',
    value: 'APPROVE'
  }
];

/**
 * 节点审核状态枚举
 */
export enum AuditEnum {
  'PASS' = 'PASS',
  'NO_AUDIT' = 'NO_AUDIT'
}

/**
 * 节点审核状态MAP
 */
export const AuditEnumMap = {
  PASS: '已批准',
  NO_AUDIT: '未审核'
};

/**
 * 节点审核状态枚举 options
 */
export const AuditStatusOptions = [
  {
    label: AuditEnumMap.PASS,
    value: 'PASS'
  },
  {
    label: AuditEnumMap.NO_AUDIT,
    value: 'NO_AUDIT'
  }
];

/**
 * 组织类别
 */
export enum OrgTypeEnum {
  'ENTITY' = 'ENTITY',
  'VIRTUAL' = 'VIRTUAL'
}

/**
 * 组织类别 MAP
 */
export const OrgTypeMap = {
  ENTITY: '实体',
  VIRTUAL: '虚拟'
};

/**
 * 组织类别 options
 */
export const OrgTypeEnumOptions = [
  {
    label: OrgTypeMap.ENTITY,
    value: 'ENTITY'
  },
  {
    label: OrgTypeMap.VIRTUAL,
    value: 'VIRTUAL'
  }
];

/**
 * 组织标签
 */
export enum OrgTagEnum {
  'ENTERPRISE' = 'ENTERPRISE',
  'FACTORY' = 'FACTORY',
  'OFFICE' = 'OFFICE',
  'ASSEMBLY' = 'ASSEMBLY'
}

/**
 * 组织标签 MAP
 */
export const OrgTagMap = {
  ENTERPRISE: '企业主体',
  FACTORY: '整车工厂',
  OFFICE: '办公',
  ASSEMBLY: '零部件工厂'
};
export const OrgTagMapEnum: any = {
  ENTERPRISE: '企',
  FACTORY: '厂',
  OFFICE: '办',
  ASSEMBLY: '厂'
};

/**
 * 组织类别 options
 */
export const OrgTagEnumOptions = [
  {
    label: '无',
    value: ''
  },
  // {
  //   label: OrgTagMap.ENTERPRISE,
  //   value: 'ENTERPRISE'
  // },
  {
    label: OrgTagMap.FACTORY,
    value: 'FACTORY'
  },
  {
    label: OrgTagMap.OFFICE,
    value: 'OFFICE'
  },
  {
    label: OrgTagMap.ASSEMBLY,
    value: 'ASSEMBLY'
  }
];

/**
 * 启用状态
 */
export const enableOption = [
  {
    label: '启用',
    value: true
  },
  {
    label: '停用',
    value: false
  }
];
